package me.shiqiang.im.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Collection;

/**
 * @author cuishiqiang
 * @date 2018/1/14 下午5:08
 */
@FeignClient(name = "im-http-service")
@RequestMapping("im/server")
public interface ServerNodeClient {


    @GetMapping("{userId}/serverId")
    String getServerId(@PathVariable("userId") String userId);

    @GetMapping("{serverId}/{groupId}/needNotifyUsers")
    Collection<String> getNeedNotifyUsers(@PathVariable("serverId") String serverId, @PathVariable("groupId") Long groupId);
}
